// 用于用户登录、注册等Api
import myRequest from './index'

//用户注册(/api/users / register)
export const registerAPI = () => {
  return myRequest.post('/api/users/register')
}
//用户登录(/api/users / login)
export const loginAPI = () => {
  return myRequest.post('/api/users/login')
}
// 获取用户信息 '/api/users/me'
export const getUserInfoAPI = () => {
  return myRequest.get('/api/users/me')
}
